﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "工序-工艺路线";
}
<div class="pageContent">
    <div class="pageFormContent">
        <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
              onsubmit="return validateCallback(this, dialogAjaxDone);">
            @Html.ValidationSummary(true)
            <div layouth="56">
                <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
                @Html.HiddenFor(model => model.Id)
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">工序信息</div>
                        <div class="Content">
                            <p>
                                <label>
                                    所属工艺路线：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true", @Value = "LX001" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                            </p>
                            <p>
                                <label>
                                    工序编号：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                            </p>
                            <p>
                                <label>
                                    工序代码：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                <input id="btn" type="button" value="..." style="float:left;" />
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    完工检验：
                                </label>
                                @Html.CheckBox("chkwg", "")
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                            </p>
                            <p>
                                <label>
                                    报工方式：
                                </label>
                                <select class="textInput " style="width:160px;"><option>自动报工</option></select>
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    工序损耗：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                            </p>
                            <p>

                            </p>
                            <p>
                                <label>
                                    估计准备工时(秒)：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                            </p>
                            <p>
                                <label>
                                    估计工时(秒)：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
                            </p>
                            <p style="width:100%;height:35px;">
                                <label>
                                    主程序路径：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { style = "width:70%" })
                                <input id="btnUpdate" type="button" value="上传" style="float:left;" />
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                            </p>
                            <p style="width:100%;height:35px;">
                                <label>
                                    参考档案文件：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Value, new { style = "width:70%" })
                                <input id="btnUpdate" type="button" value="上传" style="float:left;" />
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Value)
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>

                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">资源管理</div>
                        <div class="Content" layerH="50">
                            <table class="list nowrap itemDetail" isrownum="false" addbutton="新增" width="100%" style="clear: both;">
                                <thead>
                                    <tr class="header">
                                        <th type="label" defaultVal="#index#" style="text-align:center;">序号</th>
                                        <th type="lookup" name="items[#index#].org.orgName" lookupgroup="items[#index#].org" lookupurl="demo/database/dwzOrgLookup.html" suggesturl="demo/database/db_lookupSuggest.html" suggestfields="orgName" postfield="keywords" size="12" fieldclass="required">设备组编码</th>
                                        <th type="text" name="items[#index#].itemString" size="20" fieldclass="required" readonly="readonly" >设备组名称</th>
                                        <th type="text" name="items[#index#].itemString" size="12" fieldclass="required" readonly="readonly" >设备组类别</th>
                                        <th type="checkbox" name="items[#index#].itemString" size="12" readonly="readonly" >主生产设备</th>
                                        <th type="text" name="items[#index#].itemString" size="12" fieldclass="required" readonly="readonly" >设备数</th>
                                        <th type="text" name="items[#index#].itemString" size="12" fieldclass="required" readonly="readonly" fieldattrs="{remote:'validate_remote.html', maxlength:10}">刀位</th>
                                        <th type="text" name="items[#index#].itemString" size="25" fieldclass="" fieldattrs="{remote:'validate_remote.html', maxlength:10}">备注</th>
                                        <th type="del" width="60">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>

                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
             </div>
            @Html.Partial("FormButtonBar")
        </form>
    </div>
</div>